home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / CD CHIP.ISO / WebServ / folkweb / REGVIEW.CP_ < prev    next >
Encoding:
Text File  |  1995-08-25  |  1.6 KB  |  72 lines

  1. // regview.cpp : implementation of the CRegView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "reg.h"
  6. #include "regview.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CRegView
  15.  
  16. IMPLEMENT_DYNCREATE(CRegView, CView)
  17.  
  18. BEGIN_MESSAGE_MAP(CRegView, CView)
  19.     //{{AFX_MSG_MAP(CRegView)
  20.         // NOTE - the ClassWizard will add and remove mapping macros here.
  21.         //    DO NOT EDIT what you see in these blocks of generated code!
  22.     //}}AFX_MSG_MAP
  23. END_MESSAGE_MAP()
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CRegView construction/destruction
  27.  
  28. CRegView::CRegView()
  29. {
  30.     // TODO: add construction code here
  31.  
  32. }
  33.  
  34. CRegView::~CRegView()
  35. {
  36. }
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CRegView drawing
  40.  
  41. void CRegView::OnDraw(CDC* pDC)
  42. {
  43.     CRegDoc* pDoc = GetDocument();
  44.     ASSERT_VALID(pDoc);
  45.  
  46.     // TODO: add draw code for native data here
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CRegView diagnostics
  51.  
  52. #ifdef _DEBUG
  53. void CRegView::AssertValid() const
  54. {
  55.     CView::AssertValid();
  56. }
  57.  
  58. void CRegView::Dump(CDumpContext& dc) const
  59. {
  60.     CView::Dump(dc);
  61. }
  62.  
  63. CRegDoc* CRegView::GetDocument() // non-debug version is inline
  64. {
  65.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRegDoc)));
  66.     return (CRegDoc*)m_pDocument;
  67. }
  68. #endif //_DEBUG
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CRegView message handlers
  72.